package com.leizi.igym.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDate;
import java.util.Date;

/**
 * 教练表
 * @TableName t_trainer
 */
@TableName(value ="t_trainer")
@Data
public class Trainer implements Serializable {
    /**
     * 主键id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 教练姓名
     */
    @TableField(value = "tr_name")
    private String trName;

    /**
     * 教练头像
     */
    @TableField(value = "avatar")
    private String avatar;

    /**
     * 教练性别，0-女，1-男

     */
    @TableField(value = "gender")
    private Integer gender;

    /**
     * 教练简介
     */
    @TableField(value = "intro")
    private String intro;

    /**
     * 教练电话
     */
    @TableField(value = "phone")
    private String phone;

    /**
     * 教练生日
     */
    @TableField(value = "birthday")
    private LocalDate birthday;

    /**
     * 教练认证状态，0-未认证，1-已认证
     */
    @TableField(value = "isIdentified")
    private Integer isIdentified;

    /**
     * 教练年龄
     */
    @TableField(value = "age")
    private Integer age;

    /**
     * 教练从业年限
     */
    @TableField(value = "career")
    private Integer career;

    /**
     * 入职时间
     */
    @TableField(value = "join_time")
    private LocalDate joinTime;

    /**
     * 创建时间

     */
    @TableField(value = "create_time")
    private LocalDate createTime;

    /**
     * 更新时间
     */
    @TableField(value = "update_time")
    private LocalDate updateTime;

    /**
     * 逻辑删除，0-未删除，1-已删除辣
     */
    @TableField(value = "deleted")
    private Integer deleted;

    /**
     * 用户id
     */
    @TableField(value = "user_id")
    private Long userId;

    /**
     * 
     */
    @TableField(value = "expertise")
    private String expertise;

    /**
     * 教练身份证
     */
    @TableField(value = "id_no")
    private String idNo;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}